﻿using System;

namespace PageAdmin.Utils.BLL
{
    /// <summary>
    /// 通用更新数据（内容页提交更新)接口
    /// </summary>
    public interface IEdit<T> where T : class, new()
    {
        /// <summary>
        /// 执行前的委托
        /// </summary>
        Func<T,TipsInfo> Executing { get; set; }

        /// <summary>
        /// 执行后的委托
        /// </summary>
        Func<T,TipsInfo> Executed { get; set; }
        TipsInfo Edit(T tModel);
    }

}